package net.stogi.unicore.beyond.api.model;

import java.util.HashMap;
import java.util.Map;

public class InputType extends Entity {

	private static final long serialVersionUID = -1081612206924940596L;

	private String name;

	private Map<String, PropertyType> properties;
	
	public InputType() {
		properties = new HashMap<String, PropertyType>();
	}

	public InputType(String name) {
		this();
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setProperties(Map<String, PropertyType> properties) {
		this.properties = properties;
	}

	public Map<String, PropertyType> getProperties() {
		return properties;
	}
	
	public PropertyType addProperty(String key, ValueType valueType) {
		PropertyType property = new PropertyType(key, valueType);
		properties.put(key, property);
		return property;
	}
}
